package com.zebra.remoting;

import io.netty.channel.ChannelHandlerContext;

/**
 * Command handler.
 * 
 * @author sk
 */
public interface CommandHandler {
    /**
     * Handle the command.
     * @param ctx
     * @param msg
     * @throws Exception
     */
    void handleCommand(ChannelHandlerContext ctx, Object msg) throws Exception;

    /**
     * channelInactive
     * @param ctx
     * @throws Exception
     */
    void channelInactive(ChannelHandlerContext ctx)throws Exception;


}
